home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d17 / brdford2.arc / GRID < prev    next >
Text File  |  1988-03-19  |  3KB  |  90 lines

  1. .. Grid by Aaron Contorer, 1988
  2. .. A Bradford 2 demonstration file
  3. .. To print:
  4. ..     A> bradford grid
  5. ..
  6. .. Here's a neat demonstration of Bradford's macro capabilities.
  7. .. If you are a "power user" or a "computer hacker," you'll love
  8. .. playing with Bradford in advanced ways like this.
  9. ..
  10. .. This file is essentially a "program" for Bradford that makes it
  11. .. print a grid.  The grid will be a sort of "daily planner" for
  12. .. 7am through midnight, Monday through Sunday.  It will be labelled
  13. .. semi-automatically for the various times of day using Bradford's
  14. .. chapter numbering ability.  Bradford will repeat the grid pattern
  15. .. down the page automatically by triggering the macro.
  16. ..
  17. .. set some margins
  18. .mt1
  19. .mb0
  20. .po10
  21. .mr74
  22. .. justification will spread the grid across the page
  23. .stj
  24. .. reduce line spacing so vertical bars are close together
  25. .spq
  26. .. specify page length for new line spacing
  27. .pl88
  28. .. since | is normally the toggle character, we will change the toggle
  29. .. character to ~ so the | will be printed
  30. .dct~
  31. .. Here's the macro definition.  First a line of vertical bars, underlined.
  32. .. The underline forms the horizontal lines of our grid.
  33. .. The next line contains the number for the grid segment.  We change
  34. .. the left and margins and change the style to flush right.  We print
  35. .. the chapter number and designate the line to be overstruck, since we
  36. .. want the number to appear on the same line as the grid, not on a line
  37. .. by itself.  Note that we turn off justification on the line containing
  38. .. the chapter number, since we don't want it to be spread across the page.
  39. .. Right after the chapter number is printed, we execute macro A.  This
  40. .. macro will used to print a label after the number, such as "am" or "pm".
  41. ..
  42. .. When we're done with the chapter number, we fix the margins and switch
  43. .. back to justified printing.
  44. .. Then we print the three lines of open space that constitute the "meat"
  45. .. of the grid.  Finally, we increase the chapter number so the next
  46. .. segment of the grid will have the next higher number.
  47. .mdg "\ul1 ||||||||\ul0
  48. \str \po0 \mr9 \cn  \xma \ov
  49. \stj \po10 \mr74 ||||||||
  50. ||||||||
  51. ||||||||\cn+"
  52. .. Just for the heck of it, let's define "]" as a shorthand trigger for
  53. .. the macro we've just defined.
  54. .mcg]
  55. .. We'll use our grid to print a daily schedule from 7am to midnight.
  56. .. Therefore we'll want chapters numbered 7am-12pm, followed by 1pm-12am.
  57. .. First, let's make macro A contain the label "am".
  58. .mda "am"
  59. .. Now start with chapter number 7.
  60. .cn7
  61. .. Let's print the grid piece for 7am-11am by repeatedly executing the macro.
  62. ]
  63. ]
  64. ]
  65. ]
  66. ]
  67. .. Let's do lunch.
  68. .mda "noon"
  69. ]
  70. .. Now we want to start over with number 1, and the label "pm".
  71. .cn1
  72. .mda "pm"
  73. ]
  74. ]
  75. ]
  76. ]
  77. ]
  78. ]
  79. ]
  80. ]
  81. ]
  82. ]
  83. ]
  84. .. It's midnight.
  85. .mda "mid"
  86. ]
  87. .. Finally, print the bottom line to finish off the grid.
  88. \ul1 ||||||||\ul0
  89.  
  90.